ResourcesFactory = {};
local this = ResourcesFactory;

local cardPrefabs={};

function ResourcesFactory.New()
end

function ResourcesFactory.LoadAsset(behaviour)
    cardPrefabs[1] = behaviour:LoadAsset("card_front");
    cardPrefabs[2] = behaviour:LoadAsset("card_back");
end

--创建一个牌面
function ResourcesFactory.CreateCard(paiId)
    local go = newObject(cardPrefabs[1]);   
    go.name = paiId; 
    return Card.new(go,paiId);
end